package com.java3_9;

import java.util.Random;

public class wife implements Runnable{

    private final Account account;

    public wife(Account account) {
        this.account = account;
    }

    @Override
    public void run() {
        Random r = new Random();
        while (true){
            account.withdraw(r.nextInt(20000)+1000);
        }
    }
}
